package com.gpoint.rdp.web.controller;

import com.gpoint.rdp.base.web.controller.GenericController;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("/rdp/monitoring/monitoring/")
public class MonitoringController  extends GenericController {
    @Value("${watch.address}")
    private  String address;

    @RequestMapping("/list")
    public ModelAndView list(HttpServletRequest request, HttpServletResponse response) throws Exception{
        ModelAndView mv=getAutoView();
        System.out.println("aaaaa"+address);
        mv.addObject("address",address);
        return mv;
    }
}
